from django.urls import path
from . import views

urlpatterns = [
    # 验证用户名是否重复 GET http://www.meiduo.site:8000/usernames/itcast/count/
    path('usernames/<username:username>/count/', views.UsernameCountView.as_view()),
    # 验证手机号码是否重复 GET http://www.meiduo.site:8000/mobiles/15816120816/count/
    path('mobiles/<mobile:mobile>/count/', views.MobileCountView.as_view()),
    # 实现注册逻辑 POST http://www.meiduo.site:8000/register/
    path('register/', views.RegisterView.as_view()),
]